<?php

namespace App\Http\Controllers;

use App\Services\ShelfService;

class ShelfController extends Controller
{
    public function shelfLists(ShelfService $shelfService)
    {
        $lists = $shelfService->shelfList($this->userId);
        return renderSuccessJson($lists);
    }

    public function up(ShelfService $shelfService)
    {
        $shelfService->up($this->requests['novel_id'], $this->userId);
        return renderSuccessJson();
    }

    public function down(ShelfService $shelfService)
    {
        $shelfService->down($this->requests['novel_id'], $this->userId);
        return renderSuccessJson();
    }
}
